package com.linfeng.api.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.linfeng.common.domain.TrymallCourse;
import com.linfeng.common.vo.CourseVo;
import com.linfeng.db.mapper.TrymallCourseMapper;
import com.linfeng.api.service.TrymallCourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 教程模块 服务实现类
 * </p>
 *
 * @author linfeng
 * @since 2021-01-20
 */
@Service
public class TrymallCourseServiceImpl extends ServiceImpl<TrymallCourseMapper, TrymallCourse> implements TrymallCourseService {

    @Override
    public Page<TrymallCourse> page(TrymallCourse course, Page page) {
        return page.setRecords(super.baseMapper.page(course,page));
    }

    @Override
    public List<CourseVo> getList() {

        return super.baseMapper.getList();
    }

    @Override
    public CourseVo article(String articleId) {
        return super.baseMapper.article(articleId);
    }

    @Override
    public void deleteById(String id) {
        super.baseMapper.deleteId(id);

    }

}
